package com.edu.danmu;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * 客户端的IO处理
 */
public class NettyClientHandler extends SimpleChannelInboundHandler<String> {

    //读取数据
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, String s) throws Exception {
        System.out.println("客户端收到数据：" + s);
    }
}
